#include<iostream>
#include"Annuity.h"
using namespace std;

void Annuity::setValues(double rate, int n, double pmt, double pv, double fv)
{	
	R = rate;
	N = n;
	Pmt = pmt;
	PV = pv;
	FV = fv;
}

double Annuity::getR()const
{
	return R/12;
}

int Annuity::getN()const
{
	return N;
}
double Annuity::getPmt()const
{
	return Pmt;
}

double Annuity::getPV()const
{
	return PV;
}

double Annuity::getFV()const
{
	return FV;
}
Annuity::Annuity(double rate, int per, double pmt, double pv, double fv)
{
	R = rate;
	N = per;
	Pmt = pmt;
	PV = pv;
	FV = fv;
}

Annuity::Annuity()
{
	R = 0;
	N = 0;
	Pmt = 0;
	PV = 0;
	FV = 0;
}

